import service from '@/utils/request'


// 获取举报列表
export const getReportListService = (params) => {
  return service({
    url: '/report/list',
    method: 'get',
    params
  })
}

// 处理举报
export const handleReportService = (reportId) => {
  return service({
    url: `/report/handle/${reportId}`,
    method: 'put'
  })
}

// 撤销举报
export const cancelReportService = (reportId) => {
  return service({
    url: `/report/cancel/${reportId}`,
    method: 'put'
  })
}